import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class MethodThree {
    @SuppressWarnings("all")
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        FutureTask futureTask = new FutureTask(new MyCallable());
        Thread thread = new Thread(futureTask);
        thread.start();
        if(!futureTask.isDone())
            System.out.println("线程还没执行完!");
        System.out.println(futureTask.get());
    }
}
